package com.battery.system.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.battery.common.annotation.Excel;
import com.battery.common.core.domain.BaseEntity;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商户配置对象 ws_store_install
 *
 * @author battery
 * @date 2021-01-22
 */
@Table(name = "ws_store_install")
public class StoreInstall {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private String storeId;

    /**
     * 单价(充电宝)
     */
    @Excel(name = "单价(充电宝)")
    private BigDecimal price;

    /**
     * 单日最大上限(充电宝)
     */
    @Excel(name = "单日最大上限(充电宝)")
    private BigDecimal dayMax;

    /**
     * 单价对应的时间单位
     */
    @Excel(name = "单价对应的时间单位")
    private Integer unitTime;

    /**
     * 线套餐
     */
    @Excel(name = "线套餐")
    private String chargerPrice;


    private Integer freeM;

    public Integer getFreeM() {
        return freeM;
    }

    public void setFreeM(Integer freeM) {
        this.freeM = freeM;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setDayMax(BigDecimal dayMax) {
        this.dayMax = dayMax;
    }

    public BigDecimal getDayMax() {
        return dayMax;
    }

    public void setUnitTime(Integer unitTime) {
        this.unitTime = unitTime;
    }

    public Integer getUnitTime() {
        return unitTime;
    }

    public void setChargerPrice(String chargerPrice) {
        this.chargerPrice = chargerPrice;
    }

    public String getChargerPrice() {
        return chargerPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("storeId", getStoreId())
                .append("price", getPrice())
                .append("dayMax", getDayMax())
                .append("unitTime", getUnitTime())
                .append("chargerPrice", getChargerPrice())
                .toString();
    }
}
